<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style>
table, tr, td, th {
    
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 9px;
      /*background-color: #ffffff;*/  
}
.centro{
  text-align:center;
  vertical-align:middle;
}

.style2 {
	color: #FFFFFF;
	font-weight: bold;
}

.boton2 {     font-size:10px;
           font-family:Verdana,Helvetica;
           font-weight:bold;
           /*color:white;
           background:#638cb5;
           border:0px;*/
           width:70px;
           height:18px;           
}
</style>
<script>
function cambiar(esto)
{
	vista=document.getElementById(esto).style.display;
	if (vista=='none')
		vista='block';
	else
		vista='none';

	document.getElementById(esto).style.display = vista;
}

</script>
</head>

<body>
 <form method="POST" action="{$conf.html}/edit_answer.php" name="qform" enctype="multipart/form-data">
        <input type="hidden" name="aid" value="{$answer.aid}">
	    <input type="hidden" name="qid" value="{$data.qid}">
        <input type="hidden" name="sid" value="{$answer.sid}">
<table   align="center" style="BORDER-RIGHT:#999 1px solid; border-bottom:#999 1px solid; border-left:#999 1px solid; 
        border-top:#999 1px solid;" width="952" border="0" cellpadding="0" cellspacing="0">

  <!--DWLayoutTable-->
  <tr>
    <td   width="15" height="213" valign="top"  ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td   width="935" valign="top"><table    width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="935" height="53" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
		  <td colspan="2">
		  {* SUCCESS MESSAGE *} 
		   {section name="success" loop=1 show=$show.success}  
            <div class="message">
              Answer successfully edited.
            </div>
          {/section}
         {* / SUCCESS MESSAGE *}
		 {section name="error" loop=1 show=$show.error}
          <div class="error">{$show.error}</div>
         {/section}

		  </td>
		  </tr>
          <tr>
            <td width="464" height="33" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
              <!--DWLayoutTable-->
              <tr>
                <td width="464" height="33" valign="top"><strong><a href="javascript:cambiar('tres')">+</a> Tipo
                  de Respuesta</strong>              <select name="type" size="1">
            <option value="MS" {$answer.selected.MS}>MS - Multiple Choice, Single Answer</option>
            <option value="MM" {$answer.selected.MM}>MM - Multiple Choice, Multiple Answers</option>
            <!--  <option value="T" {$answer.selected.T}>T - Textbox, large</option>
            <option value="S" {$answer.selected.S}>S - Textbox, small</option>-->
            <!-- <option value="NUM" {$answer.selected.NUM}>NUM - Numeric Answer</option>
            <option value="DATE" {$answer.selected.DATE}>DATE - Date/Time Answer</option> -->
           <!--   <option value="N" {$answer.selected.N}>N - No Answer Values</option>-->
          </select></td>
                      </tr>
              <tr>
                <td valign="top">
                  <div id="tres" style="display: none;">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <!--DWLayoutTable-->
                      <tr>
                        <td width="464" height="120" valign="top">
                          * MS = Multiples opciones, una sola respuesta a escoger.<br />
                          * MM = Multiples opciones, mas de una respuesta a escoger<br /><br />
                          Answer Values (MS and MM Answer Types only) 
                          You must supply a list of possible answers if you selected MS or MM for an Answer Type. 
                          List one answer per text box in the boxes below. Use the button at the bottom of the boxes to add more boxes for more answers. The order you list the answers here is the order they will be presented in the surveys. 
                          You can optionally assign a numeric value to each answer value that you provide, also. This numeric value can then be used when exporting the results to a CSV file for processing by other analysis programs.	 </td>
                              </tr>
                      </table>
                        </div>					</td>
                      </tr>
                </table></td>
                  <td width="471">&nbsp;</td>
                </tr>
          <tr>
            <td height="20"></td>
                  <td></td>
                </tr>
          
          
          
          </table></td>
          </tr>
      <tr>
        <td height="106" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td height="58" colspan="2" valign="top"><table class="centro"  border="0" cellpadding="0" cellspacing="0">
              <!--DWLayoutTable-->
              <tr>
                <td width="26" height="58" valign="top"><table  width="100%" border="0" cellpadding="0" cellspacing="0">
                  <!--DWLayoutTable-->
                  <tr>
                    <td width="31" height="26" align="center" ><strong>Num</strong></td>
                            </tr>
                  <tr>
                    <td height="32" align="center">1.</td>
                            </tr>
                  
                  </table>            </td>
                        <td width="251" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <!--DWLayoutTable-->
                            <tr>
                              <td width="262" height="26" align="center" ><strong>Valores de Respuesta (Visualizar)</strong></td>
                            </tr>
                            <tr>
                              <td height="32" align="center" valign="top"><input type="text" name="textfield2" size="40"  value="Si"/></td>
                            </tr>
                        </table></td>
                        <td width="12">&nbsp;</td>
                        <td width="64" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <!--DWLayoutTable-->
                            <tr>
                              <td width="9" height="26">&nbsp;</td>
                              <td width="66" align="center" valign="top"><strong>Valores Numericos</strong></td>
                            </tr>
                            <tr>
                              <td height="32">&nbsp;</td>
                              <td align="center" valign="top"><input type="text" name="textfield27" size="5" value="1"  ></td>
                            </tr>
                            
                        </table></td>
                        <td width="9">&nbsp;</td>
                        <td width="117" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <!--DWLayoutTable-->
                            <tr>
                              <td width="117" height="26" align="center" valign="top"><strong>Imagen de Grafico<br />
                              de Barra </strong></td>
                            </tr>
                            <tr>
                              <td height="32" align="center" valign="top"><select name="select2">
                                <option selected="selected">aquabar.gif</option>
                              </select></td>
                            </tr>
                            
                            
                        </table></td>
                        <td width="13">&nbsp;</td>
                        <td width="222" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <!--DWLayoutTable-->
                            <tr>
                              <td width="222" height="26" align="center" valign="top"><strong>Imagen de Respuesta.&nbsp; max
                              20KB-Size 120x50 Solo tipo .gif .jpg .jpeg .png </strong></td>
                            </tr>
                            <tr>
                              <td height="32" align="center" valign="top"><input type="file" size="20" /></td>
                            </tr>
                            
                        </table></td>
                        <td width="8">&nbsp;</td>
                        <td width="52" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <!--DWLayoutTable-->
                            <tr>
                              <td height="26" colspan="2" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
                            </tr>
                            <tr>
                              <td width="32" height="32" valign="top"><img src="html_image_a/{$answer.img_path[i]}"></td>
                              <td width="21" valign="top"><input type="checkbox" name="checkbox" value="checkbox" /></td>
                            </tr>
                        </table></td>
                        <td width="160">&nbsp;</td>
                      </tr>
              
              
              
              
              
                  </table></td>
                </tr>
          <tr>
            <td height="30" valign="top">Agregar
              <select name="select8">
                <option value="1" selected="selected">1</option>
                </select>
              campo mas para llenar Valores.
              <input type="submit" name="Submit7" value="agregar" /></td>
          
                <td width="500">&nbsp;</td>
                </tr>
          <tr>
            <td height="18"></td>
                  <td></td>
                </tr>
          
          
          
          
          </table></td>
          </tr>
      <tr>
        <td height="26" valign="top" align="center"><input type="submit" name="Submit5" value="Editar Respuesta" /></td>
          </tr>
      <tr>
        <td height="28">&nbsp;</td>
          </tr>
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      

      

      

      
      
      
      
      
      
      
      
      
      
    </table></td>
    </tr>
  
</table>
</form>
</body>
</html>
